package com.itheima.tlias.service;

import com.itheima.tlias.dto.ReportGenderCountDTO;
import com.itheima.tlias.dto.SelectEmpDTO;
import com.itheima.tlias.dto.SelectEmpDetailDTO;
import com.itheima.tlias.po.InsertEmpParam;
import com.itheima.tlias.po.SelectEmpPageParam;
import com.itheima.tlias.po.UpdateEmpParam;
import com.itheima.tlias.util.ResultUtil;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface EmpService {

    ResultUtil selectEmpByPage(@Param("p") SelectEmpPageParam param);

    int batchDelete(@Param("ids") List<Integer> ids);

    int insertEmp(@Param("p")InsertEmpParam param);

    SelectEmpDetailDTO selectEmpById(@Param("id")Integer id);

    int updateEmp(UpdateEmpParam param);

    List<ReportGenderCountDTO> empGenderData();

    ResultUtil empJobData();

    List<SelectEmpDTO> selectAllMaster();
}
